package zhu.areas.user.data;

import java.util.Date;

/**
 * @hibernate.class table="T_UserInfo" dynamic-insert="true" dynamic-update="true"
 * @author Administrator
 * 
 */
public class UserInfo {
	private int userID;
	private String realName;
	private String sex;
	private String QQ;
	private String MSN;
	private String address;
	private Date birthday;
	private String introduce;
	private String photo;
	private String website;

	private User user;

	public UserInfo() {

	}

	public UserInfo(int userID) {
		super();
		this.userID = userID;
	}

	/**
	 * @hibernate.id column="UserID" unsaved-value="null"
	 *               generator-class="foreign"
	 * @hibernate.generator-param name="property" value="user" 
	 */
	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	/**
	 * @hibernate.property column = "RealName"  not-null="true"
	 * @return
	 */
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	/**
	 * @hibernate.property column = "Sex" not-null="true"
	 * @return
	 */
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @hibernate.property column = "QQ"
	 * @return
	 */
	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}

	/**
	 * @hibernate.property column = "MSN"
	 * @return
	 */
	public String getMSN() {
		return MSN;
	}

	public void setMSN(String mSN) {
		MSN = mSN;
	}

	/**
	 * @hibernate.property column = "Address"  not-null="true"
	 * @return
	 */
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @hibernate.property column = "Birthday"  not-null="true"
	 * @return
	 */
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	/**
	 * @hibernate.property column = "Introduce"
	 * @return
	 */
	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	/**
	 * @hibernate.property column = "Photo" 
	 * @return
	 */
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	/**
	 * @hibernate.property column = "Website" 
	 * @return
	 */
	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	/**
	 * @hibernate.one-to-one column="userID"  class="zhu.areas.user.data.User"
	 *                      
	 */

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
